<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

</head>

<body>
	<%
		String username = request.getParameter("username");
		int len = username.length();
		String password = request.getParameter("password");
		if ("123".equals(password) && len >= 6 && len <= 12
				&& username.startsWith("ahpu_")) {
			session.setAttribute("username", username);
			response.sendRedirect("messageBoard.jsp");
		}
	%>
	<h1>非法用户</h1>
	<%= username %>
	<%= password %>
</body>
</html>
